<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'transport-form',
	'enableAjaxValidation'=>false,
)); ?>

    <p class="note">Обязательные поля <span class="required">*</span></p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'transport_type_id'); ?>
		<? echo CHtml::activeDropDownList($model, 'transport_type_id', CHtml::listData(TransportType::model()->findAll(), 'id', 'name'));?>
		<?php echo $form->error($model,'transport_type_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sending_point_id'); ?>
		<? echo CHtml::activeDropDownList($model, 'sending_point_id', CHtml::listData(Locality::model()->findAll(), 'id', 'city', 'country'));?>
		<?php echo $form->error($model,'sending_point_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'destination_id'); ?>
		<? echo CHtml::activeDropDownList($model, 'destination_id', CHtml::listData(Locality::model()->findAll(), 'id', 'city', 'country'));?>
		<?php echo $form->error($model,'destination_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price'); ?>
		<?php echo $form->textField($model,'price'); ?>
		<?php echo $form->error($model,'price'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Создать' : 'Сохранить'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->